package com.wh.countdownlatch;

import java.util.concurrent.CountDownLatch;

public class Client {

	public static void main(String[] args) throws InterruptedException {
		CountDownLatch countDownLatch = new CountDownLatch(1);
		NeedToWait needToWait = new NeedToWait(countDownLatch);
		FirstExe firstExe = new FirstExe(countDownLatch);
		Thread t1 = new Thread(needToWait);
		t1.start();
		Thread t2 = new Thread(firstExe);
		t2.start();
		Thread t3 = new Thread(firstExe);
		t3.start();
	
	}
}
